import { defineStore } from 'pinia'

interface IForm {
  suffixNameEnable: boolean
  suffixNameType: '0' | '1'
  newSuffixName: string | undefined
  suffixNameSearch: string | undefined
  suffixNameReplace: string | undefined
}

const useSuffixFileNameFormStore = defineStore('suffixFileNameForm', {
  state(): IForm {
    return {
      // 扩展名
      suffixNameEnable: true,
      // 类型
      suffixNameType: '0',
      // 新扩展名
      newSuffixName: undefined,
      // 查找内容
      suffixNameSearch: undefined,
      // 替换内容
      suffixNameReplace: undefined
    }
  }
})

export default useSuffixFileNameFormStore
